package novel.spider.entitys;

import java.io.Serializable;
import java.util.Date;

/**
 * 小说实体
 * Created by Kau on 2016/11/5.
 */
public class Novel implements Serializable{
    // 书名
    private String name;
    // 作者名
    private String author;
    // 小说的链接
    private String URL;
    // 小说的类别：如武侠修真，都市等
    private String type;
    // 最后一章章节名
    private String lastUpdateChapter;
    // 最后一章链接
    private String lastUpdateChapterURL;
    // 小说最后更新时间
    private Date lastUpadteTime;
    // 小说状态 1 连载 0 完结
    private int status;
    // 书名首字母
    private char firstLetter;
    // 小说平台ID
    private int platformId;
    // 小说存储到本地数据库时间
    private Date addTime;

    public Novel() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getURL() {
        return URL;
    }

    public void setURL(String URL) {
        this.URL = URL;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLastUpdateChapter() {
        return lastUpdateChapter;
    }

    public void setLastUpdateChapter(String lastUpdateChapter) {
        this.lastUpdateChapter = lastUpdateChapter;
    }

    public String getLastUpdateChapterURL() {
        return lastUpdateChapterURL;
    }

    public void setLastUpdateChapterURL(String lastUpdateChapterURL) {
        this.lastUpdateChapterURL = lastUpdateChapterURL;
    }

    public Date getLastUpadteTime() {
        return lastUpadteTime;
    }

    public void setLastUpadteTime(Date lastUpadteTime) {
        this.lastUpadteTime = lastUpadteTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public char getFirstLetter() {
        return firstLetter;
    }

    public void setFirstLetter(char firstLetter) {
        this.firstLetter = firstLetter;
    }

    public int getPlatformId() {
        return platformId;
    }

    public void setPlatformId(int platformId) {
        this.platformId = platformId;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    @Override
    public String toString() {
        return "Novel{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", URL='" + URL + '\'' +
                ", type='" + type + '\'' +
                ", lastUpdateChapter='" + lastUpdateChapter + '\'' +
                ", lastUpdateChapterURL='" + lastUpdateChapterURL + '\'' +
                ", lastUpadteTime=" + lastUpadteTime +
                ", status=" + status +
                ", firstLetter=" + firstLetter +
                ", platformId=" + platformId +
                ", addTime=" + addTime +
                '}';
    }
}
